﻿using System.IO;
using System.Threading.Tasks;

namespace Wombat.Bootstrappers.Essentials
{
    public partial class Bootstrap
    {
        private const string ConfigFile = "GateConfigs.xml";

        private async Task LoadConfiguration()
        {
            // ReSharper disable AssignNullToNotNullAttribute
            await _configurationServiceLoader.LoadConfigurationAsync(Path.Combine(Path.GetDirectoryName(GetType().Assembly.Location) , ConfigFile));
            // ReSharper restore AssignNullToNotNullAttribute
        }
    }
}
